package com.zhuoli.zblog.repository.service.impl;

import com.zhuoli.zblog.repository.dao.RoleMapper;
import com.zhuoli.zblog.repository.model.Role;
import com.zhuoli.zblog.repository.service.RoleDaoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Author: zhuoli
 * Description:
 * Date: 上午10:57 2018/4/22
 */
@Repository
public class RoleDaoRepositoryImpl implements RoleDaoRepository {

    @Autowired
    RoleMapper roleMapper;

    @Override
    public Role queryRoleById(Integer roleId) {
        return roleMapper.selectByPrimaryKey(roleId);
    }
}
